//
//  YWattachment.h
//  maintain
//
//  Created by Kyo on 16/3/18.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, YWattachmentType) {
    YWattachmentTypeOfOther = 0,
    YWattachmentTypeOfPlan = 1,//方案
    YWattachmentTypeOfReport = 2, //报告
    YWattachmentTypeOfNotice = 3, // 公告的附件
    YWattachmentTypeOfTempMission = 4 //临时任务的附件
};

@interface YWattachment : NSObject

/**附件ID*/
@property (nonatomic, assign) NSInteger attachmentId;
/**附件名称*/
@property (nonatomic, copy) NSString* attachmentName;
/**附件大小*/
@property (nonatomic, assign) NSInteger fileSize;
/**下载地址（不是全量地址）*/
@property (nonatomic, copy) NSString* downLoadUrl;
/**本地缓存路径*/
@property (nonatomic, copy) NSString* localName;
/**关联ID*/
@property (nonatomic, assign) NSInteger recordId;

@property (nonatomic, assign) YWattachmentType attachmentType;
@end
